/*
 * @Author: 107w 8801453+lu-shangru@user.noreply.gitee.com
 * @Date: 2023-04-11 16:51:46
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2023-12-26 16:57:42
 * @Description:
 *
 * Copyright (c) 2023 by 107w, All Rights Reserved.
 */
// vuex的权限模块
const state = {
  messageTemplateList: [] // 所有人默认拥有静态路由
}
const mutations = {
  // newRoutes可以认为是 用户登录 通过权限所得到的动态路由的部分
  setmessageTemplateList(state, messageTemplateList) {
    state.messageTemplateList = [...messageTemplateList]
  }
}
const actions = {
  setmessageTemplateList(context, messageTemplateList) {
    context.commit('setmessageTemplateList', messageTemplateList)
  }
}
export default {
  namespaced: true,
  state,
  mutations,
  actions
}

